home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / lptalk-1.3 / tl.h < prev    next >
Text File  |  1995-05-03  |  1KB  |  43 lines

  1. /************************************************************************/
  2. /* LP-Talk
  3.     Version 1.0 [ 9/24/90]
  4.     Version 1.1 [ 9/27/90]
  5.     Version 1.2 [ 9/28/90]
  6. */
  7. /* TinyTalk global types and variables.                    */
  8. /*                                    */
  9. /*    Version 1.0 [ 1/24/90] : Initial implementation by ABR.        */
  10. /*              1.1 [ 1/24/90] : Longer strings allowed.        */
  11. /*        1.2 [ 2/16/90] : Integrated support for System V and    */
  12. /*                 HP-UX, from Andy Norman and Kipp       */
  13. /*                 Hickman.                */
  14. /*                                    */
  15. /************************************************************************/
  16.  
  17. #define TRUE 1
  18. #define FALSE 0
  19.  
  20. #define MAXSTRLEN 511
  21. #define HUGESTRLEN (2*MAXSTRLEN)
  22. #define SMALLSTR 31
  23.  
  24. typedef char string[MAXSTRLEN+1];
  25. typedef char hugestr[HUGESTRLEN+1];
  26. typedef char smallstr[SMALLSTR+1];
  27.  
  28.   /* A TinyMUD world/character record. */
  29.  
  30. typedef struct world_rec {
  31.   struct world_rec *next;
  32.   smallstr world, character, pass, address, port;
  33. } world_rec;
  34.  
  35. #if HPUX || SYSV
  36.  
  37. #define rindex strrchr
  38. #define index strchr
  39. #define bcopy(a,b,c) memcpy((b),(a),(c))
  40. #define bzero(a, b) memset((a), '\0', (b))
  41.  
  42. #endif /* HPUX || SYSV */
  43.